﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace DomainModel.Entities
{
    public class Track
    {
        [KeyAttribute]
        public int TrackID { get; set; }

        public int AlbumID { get; set; }
        [ForeignKey("AlbumID")]
        public virtual Album Album { get; set; }

        [Display(Name = "Track Caption")] // Display name
        public string TrackCaption { get; set; }

        [Display(Name = "Track File Name")] // Orignal name
        public string TrackFileName { get; set; }        

        [Display(Name = "Track Saving Name")] // Saving name 
        public string TrackSavingName { get; set; }

        [Display(Name = "Mime Type")]
        public string TrackMimeType { get; set; }

        [Display(Name = "File Size")]
        public decimal TrackContentSize { get; set; }     

        [Display(Name = "Last Update")]
        public DateTime LastUpdate { get; set; }

        public bool IsApproved { get; set; } 

        public int HitCount { get; set; }
    }
}
